package P4.T04;

import P3.T03.Cat;

public class T04 {
    public static void main(String[] args) {
        try {
            int o=Integer.parseInt("a18");
            Object a1=new Cat(1,1);
            Integer a2=(Integer)a1;
            Integer[] a = null;
            a[0]=100;
            int i = 4 / 0;
            System.out.println(i);
        } catch (ArithmeticException e) {
//            System.out.println(e.getMessage());
            System.out.println("被0除错误");
        }
        catch (NullPointerException e) {
            System.out.println("空指针错误");
        }
        catch (ClassCastException e) {
            System.out.println(e.toString());
        }
    }
}
